﻿<%@ Page Title="" ValidateRequest="false" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MRGSP.SurveyMaster.Infra.Dto.SurveyInput>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Add
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 
 <link href="<%= Url.Content("~/Content/jquery.cleditor.css")%>" rel="stylesheet" type="text/css" />
 <script type="text/javascript" src="<%=Url.Content("~/Scripts/jquery.cleditor.min.js") %>"></script>
<script type="text/javascript">
    $(function() {
        $("#Header").cleditor();
        $("#Footer").cleditor();
    });
</script>  
    
    <h2>
        Create survey</h2>
    <% using (Html.BeginForm())
       {%>
    <%= Html.ValidationSummary(true) %>
    <fieldset>
        <div class="efield">
            <div class="elabel">
                <%= Html.LabelFor(model => model.Name) %>
            </div>
            <div class="einput">
                <%= Html.TextBoxFor(model => model.Name) %>
                <%= Html.ValidationMessageFor(model => model.Name) %>
            </div>
        </div>
        <div class="efield">
            <div class="elabel">
                <%= Html.LabelFor(model => model.Header) %>
            </div>
            <div class="einput">
                <%= Html.TextAreaFor(model => model.Header)%>
                <%= Html.ValidationMessageFor(model => model.Header)%>
            </div>
        </div>
        <div class="efield">
            <div class="elabel">
                <%= Html.LabelFor(model => model.Footer) %>
            </div>
            <div class="einput">
                <%= Html.TextAreaFor(model => model.Footer) %>
                <%= Html.ValidationMessageFor(model => model.Footer)%>
            </div>
        </div>
        <div class="efield esubmit">
            <input type="submit" value="Save" />
        </div>
    </fieldset>
    <% } %>
</asp:Content>
